package da;

import java.util.Random;

public class demo01 {
    public static void main(String[] args) {
    	Random ra= new Random(); 
    	int a[]=new int[7];
    	for (int i = 0; i < a.length; i++) {
			a[i]=ra.nextInt(10);
			System.out.print(a[i]);
			System.out.print(" ");
		}
    	System.out.println();
    	b(a);
}
    public static void  b(int a[]) {
    	for (int i = 0; i < a.length; i++) {
				if (i==4) {
				System.out.print(" ");
				System.out.print(a[i]);
			}
				else {
					System.out.print(a[i]);
				}	
				
		
		}

    }
}
